package Demo.demo7;

public class Multiply {
    public static void main(String[] args) {
        String [] args1 = new String[2];
        args1[0] = "10";

        try {
            int i = Integer.parseInt(args1[0]);
            int j = Integer.parseInt(args1[1]);
            System.out.println(i * j);
        } catch (ArrayIndexOutOfBoundsException e1) {
            System.out.println("数组越界");
        }catch (NumberFormatException e2){
            System.out.println("数据格式不对");
        }
    }
}
